$OpenBSD: patch-pyglet_font_freetype_py,v 1.1.1.1 2012/05/30 20:45:48 edd Exp $

Fix for #529: make fonts work on 64-bit
http://code.google.com/p/pyglet/issues/detail?id=529

--- pyglet/font/freetype.py.orig	Wed May 30 18:48:07 2012
+++ pyglet/font/freetype.py	Wed May 30 18:49:56 2012
@@ -53,8 +53,19 @@ fontconfig = pyglet.lib.load_library('fontconfig')
 FcResult = c_int
 
 fontconfig.FcPatternBuild.restype = c_void_p
+fontconfig.FcPatternCreate.restype = c_void_p
 fontconfig.FcFontMatch.restype = c_void_p
 fontconfig.FcFreeTypeCharIndex.restype = c_uint
+
+fontconfig.FcPatternAddDouble.argtypes = [c_void_p, c_char_p, c_double]
+fontconfig.FcPatternAddInteger.argtypes = [c_void_p, c_char_p, c_int]
+fontconfig.FcPatternAddString.argtypes = [c_void_p, c_char_p, c_char_p]
+fontconfig.FcConfigSubstitute.argtypes = [c_void_p, c_void_p, c_int]
+fontconfig.FcDefaultSubstitute.argtypes = [c_void_p]
+fontconfig.FcFontMatch.argtypes = [c_void_p, c_void_p, c_void_p]
+fontconfig.FcPatternDestroy.argtypes = [c_void_p]
+fontconfig.FcPatternGetFTFace.argtypes = [c_void_p, c_char_p, c_int, c_void_p]
+fontconfig.FcPatternGet.argtypes = [c_void_p, c_char_p, c_int, c_void_p]
 
 FC_FAMILY = 'family'
 FC_SIZE = 'size'
